﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Altbrot.Yawr.Player
{
    public enum StreamPlayerPlayState
    {
        wmppsUndefined = 0,
        wmppsStopped = 1,
        wmppsPaused = 2,
        wmppsPlaying = 3,
        wmppsScanForward = 4,
        wmppsScanReverse = 5,
        wmppsBuffering = 6,
        wmppsWaiting = 7,
        wmppsMediaEnded = 8,
        wmppsTransitioning = 9,
        wmppsReady = 10,
        wmppsReconnecting = 11,
        wmppsLast = 12,
    }

    public interface IStreamPlayer
    {
        event PlayerStatusChangedEventHandler OnStatusTextChanged;
        event MethodInvoker OnMediaChanged;
        StreamPlayerPlayState PlayerState { get; }
        string MediaName { get; }
        string MediaBitrate { get; }
        void Play(Uri url);
        void Stop();
        void Pause();
    }
}
